	import {
		createRouter,
		createWebHashHistory
	} from 'vue-router'
	import news from '@/views/news/list'
	import kechengleibie from '@/views/kechengleibie/list'
	import kechengziyuan from '@/views/kechengziyuan/list'
	import xuesheng from '@/views/xuesheng/list'
	import kehouzuoye from '@/views/kehouzuoye/list'
	import jiaoshi from '@/views/jiaoshi/list'
	import kechengqiandao from '@/views/kechengqiandao/list'
	import config from '@/views/config/list'
	import users from '@/views/users/list'
	import shipinjiaoxue from '@/views/shipinjiaoxue/list'
	import jiaoshiRegister from '@/views/jiaoshi/register'
	import jiaoshiCenter from '@/views/jiaoshi/center'

export const routes = [{
		path: '/login',
		name: 'login',
		component: () => import('../views/login.vue')
	},{
		path: '/',
		name: '首页',
		component: () => import('../views/index'),
		children: [{
			path: '/',
			name: '首页',
			component: () => import('../views/HomeView.vue'),
			meta: {
				affix: true
			}
		}, {
			path: '/updatepassword',
			name: '修改密码',
			component: () => import('../views/updatepassword.vue')
		}
		
		,{
			path: '/jiaoshiCenter',
			name: '教师个人中心',
			component: jiaoshiCenter
		}
		,{
			path: '/news',
			name: '公告信息',
			component: news
		}
		,{
			path: '/kechengleibie',
			name: '课程类别',
			component: kechengleibie
		}
		,{
			path: '/kechengziyuan',
			name: '课程资源',
			component: kechengziyuan
		}
		,{
			path: '/xuesheng',
			name: '学生',
			component: xuesheng
		}
		,{
			path: '/kehouzuoye',
			name: '课后作业',
			component: kehouzuoye
		}
		,{
			path: '/jiaoshi',
			name: '教师',
			component: jiaoshi
		}
		,{
			path: '/kechengqiandao',
			name: '课程签到',
			component: kechengqiandao
		}
		,{
			path: '/config',
			name: '轮播图',
			component: config
		}
		,{
			path: '/users',
			name: '管理员',
			component: users
		}
		,{
			path: '/shipinjiaoxue',
			name: '视频教学',
			component: shipinjiaoxue
		}
		]
	},
	{
		path: '/jiaoshiRegister',
		name: '教师注册',
		component: jiaoshiRegister
	},
]

const router = createRouter({
	history: createWebHashHistory(process.env.BASE_URL),
	routes
})

export default router
